package main

import "fmt"
type Address struct{
	city string
	stress string
}
func main(){
	map1:=make(map[string]interface{})
	map1["name"]="zhangsan"
	map1["age"]=18
	map1["hobby"]=[]string{"打篮球","coding"}
	fmt.Println(map1)
	//fmt.Println(map1["hobby"][1])
	addr:=Address{
		city:"重庆",
		stress:"南岸区",
	}
	map1["address"]=addr
	//fmt.Println(map1["address"].city)
	address,_:=map1["address"].(Address)
	fmt.Println(address)
	hobby,_:=map1["hobby"].([]string)
	fmt.Println(hobby)
}